package com.gitee.foodon.sbfind.archetype.persistence.mybatis;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * Person 对应的 Mapper 接口
 *
 * @author yangfudong
 * @date 2017/7/18 13:12
 */
@Mapper
public interface PersonMapper {

    @Select("SELECT id, name, age FROM person WHERE id = #{id}")
    Person findById(String id);

    Person findByName(String name);
}
